import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/valveManagement',
    name: 'ValveManagement',
    redirect: '/valveManagement/stopSupply',
    meta: {
      title: '阀门管理',
      icon: 'material-symbols:valve-outline',
      hideInMenu: false,
      keepAlive: true,
      order: 2400,
    },
    children: [
      {
        path: '/valveManagement/stopSupply',
        name: 'stop_supply',
        meta: {
          title: '停供管理',
          hideInMenu: false,
          keepAlive: true,
        },
        component: () => import('#/views/valveManagement/stopSupply.vue'),
      },
      {
        path: '/valveManagement/batchStopSupply',
        name: 'batch_stop_supply',
        meta: {
          title: '批量停供',
          hideInMenu: false,
          keepAlive: true,
        },
        component: () => import('#/views/valveManagement/batchStopSupply.vue'),
      },
      {
        path: '/valveManagement/batchImport',
        name: 'batch_import',
        meta: {
          title: '批量导入开关栓状态',
          hideInMenu: false,
          keepAlive: true,
        },
        component: () => import('#/views/valveManagement/batchImport.vue'),
      },
    ],
  },
];
export default routes;
